OfflineRegionInterface

interface OfflineRegionInterface

An offline region represents an identifiable geographic region with optional metadata.

Functions

getGeometryDefinition
Link copied to clipboard
abstract fun getGeometryDefinition(): OfflineRegionGeometryDefinition
The geometry defining the region.
getIdentifier
Link copied to clipboard
abstract fun getIdentifier(): Long
The regions identifier
getMetadata
Link copied to clipboard
abstract fun getMetadata(): Array<Byte>
Arbitrary binary region metadata.
getTilePyramidDefinition
Link copied to clipboard
abstract fun getTilePyramidDefinition(): OfflineRegionTilePyramidDefinition
The tile pyramid defining the region.
invalidate
Link copied to clipboard
abstract fun invalidate(@NonNull() callback: AsyncOperationResultCallback)
Invalidate all the tiles for the region forcing to revalidatethe tiles with the server before using.
purge
Link copied to clipboard
abstract fun purge(@NonNull() callback: AsyncOperationResultCallback)
Remove an offline region from the database and perform any resourcesevictions necessary as a result.
setOfflineRegionDownloadState
Link copied to clipboard
abstract fun setOfflineRegionDownloadState(@NonNull() state: OfflineRegionDownloadState)
Sets the download state of an offline regionA region is either inactive (not downloading, but previously-downloadedresources are available for use), or active (resources are being downloadedor will be downloaded, if necessary, when network access is available).If the region is already in the given state, this call is ignored.
setOfflineRegionObserver
Link copied to clipboard
abstract fun setOfflineRegionObserver(@NonNull() observer: OfflineRegionObserver)
Register an observer to be notified when the state of the region changes.

Inheritors

OfflineRegion
Link copied to clipboard